package com.AdvancedDemos.继承.模板设计模式案例2;

public class HouseOne extends HouseTemplate {

    protected HouseOne(String houseName) {
        super(houseName);
    }

    @Override
    protected void buildWall() {
        System.out.println(houseName + "的墙使用大理石建造");
    }

    @Override
    protected void buildBase() {
        System.out.println(houseName + "的地基使用钢铁地基");
    }

    @Override
    protected void buildDoor() {
        System.out.println(houseName + "的门要采用防盗门");
    }

    @Override
    protected void buildWindows() {
        System.out.println(houseName + "的窗子要朝向北方");
    }
}
